public class DoWhileLoop {
    public static void main(String[] args) {
        int result = 0, i = 1;

        do{
            result += i;  // result = result + i
            i++;
        } while (i <5);

        System.out.println("result=" + result);
    }

}
